{include file="header.htm" /}
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    {include file="bar.htm" /}
    <form class="form-horizontal" id="post_form" action="{:weapp_url('ErxClose/ErxClose/index')}" method="post">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="local">关站范围</label>
                </dt>
                <dd class="opt">
                    <label class="curpoin"><input  name="is_open" value="0" type="radio" {if condition="!isset($row.is_open) || $row.is_open eq 0"} checked="checked"{/if}>暂不启用</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_open" value="1" type="radio" {if condition="isset($row.is_open) && $row.is_open eq 1"} checked="checked"{/if}>全站</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input i name="is_open" value="2" type="radio" {if condition="isset($row.is_open) && $row.is_open eq 2"} checked="checked"{/if}>仅首页</label>                    
                </dd>
            </dl>    
            <dl class="row">
                <dt class="tit">
                    <label>关闭时段</label>
                </dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="is_times1" class="cb-enable {if condition='isset($row.is_times) && $row.is_times eq 1'}selected{/if}">启用</label>
                        <label for="is_times0" class="cb-disable {if condition='!isset($row.is_times) || $row.is_times eq 2'}selected{/if}">关闭</label>
                        <input id="is_times1" name="is_times" value="1" type="radio" {if condition="isset($row.is_times) && $row.is_times eq 1"} checked="checked"{/if}>
                        <input id="is_times0" name="is_times" value="2" type="radio" {if condition="!isset($row.is_times) || $row.is_times eq 2"} checked="checked"{/if}>
                    </div>
                     <div  style="position: relative;left: 25px;margin-left: 70px;">
                        <input type="text" name="starttime" placeholder="开始时" oninput="value=value.replace(/^(0+)|[^\d]+/g,'');if(value>23)value=23;"  value="{$row.starttime}" class="w100"><span>&nbsp;-&nbsp;</span><input type="text" name="endtime" placeholder="结束时" value="{$row.endtime}" class="w100" oninput="value=value.replace(/^(0+)|[^\d]+/g,'');if(value>23)value=23;" ><span class="ml20" style="line-height: 29px;">例: 23-7可实现夜晚关站，以网站服务器时间计</span>                 
                    </div>                     
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>关站赦免对象</label>
                </dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="is_seo1" class="cb-enable {if condition='!isset($row.is_seo) || $row.is_seo eq 1'}selected{/if}">搜索引擎(蝴妹+来路)</label>
                        <label for="is_seo0" class="cb-disable {if condition='isset($row.is_seo) && $row.is_seo eq 2'}selected{/if}">关闭</label>
                        <input id="is_seo1" name="is_seo" value="1" type="radio" {if condition="!isset($row.is_seo) || $row.is_seo eq 1"} checked="checked"{/if}>
                        <input id="is_seo0" name="is_seo" value="2" type="radio" {if condition="isset($row.is_seo) && $row.is_seo eq 2"} checked="checked"{/if}>
                    </div>
                    <div class="onoff ml20">
                        <label for="is_dev1" class="cb-enable {if condition='!isset($row.is_dev) || $row.is_dev eq 1'}selected{/if}">手机端访问</label>
                        <label for="is_dev0" class="cb-disable {if condition='isset($row.is_dev) && $row.is_dev eq 2'}selected{/if}">关闭</label>
                        <input id="is_dev1" name="is_dev" value="1" type="radio" {if condition="!isset($row.is_dev) || $row.is_dev eq 1"} checked="checked"{/if}>
                        <input id="is_dev0" name="is_dev" value="2" type="radio" {if condition="isset($row.is_dev) && $row.is_dev eq 2"} checked="checked"{/if}>
                    </div>                    
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>白定义赦免来路</label>
                </dt>
                <dd class="opt">          
                    <textarea rows="5" cols="60" name="is_link" style="height: 90px;">{$row.is_link}</textarea>
                    <p class="">填写故免来路域名，如友链、导航，工具站等，竖线分隔多个</p>                    
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>本站赦免页面</label>
                </dt>
                <dd class="opt">          
                    <textarea rows="5" cols="60" name="is_open_url" style="height: 90px;">{$row.is_open_url}</textarea>
                    <p class="">填写关闭全站时仍可访问的页面网址，如登录、说明页等，一行一个</p>                    
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="local">关站反馈</label>
                </dt>
                <dd class="opt">
                    <label class="curpoin"><input  name="is_tig" value="1" type="radio" {if condition="!isset($row.is_tig) || $row.is_tig eq 1"} checked="checked"{/if}>提示文案</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_tig" value="3" type="radio" {if condition="$row.is_tig eq 3"} checked="checked"{/if}>404页面</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_tig" value="2" type="radio" {if condition="$row.is_tig eq 2"} checked="checked"{/if}>404响应</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_tig" value="4" type="radio" {if condition="$row.is_tig eq 4"} checked="checked"{/if}>403响应</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_tig" value="5" type="radio" {if condition="$row.is_tig eq 5"} checked="checked"{/if}>503响应</label>
                    &nbsp;&nbsp;
                    <label class="curpoin"><input name="is_tig" value="6" type="radio" {if condition="$row.is_tig eq 6"} checked="checked"{/if}>自定义跳转地址</label>
                    <p class="notic"></p>
                </dd>
            </dl>    
            <dl class="row" id="zdy_url" {if $row.is_tig==6}style="display: block"{else/}style="display: none"{/if}>
                <dt class="tit">
                    <label for="is_url">自定义跳转地址</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="is_url" value="{$row.is_url}" id="is_url" class="input-txt">                    
                    <p class="notic2">可以是站内也可以是站外，完整的链接地址</p>
                </dd>
            </dl>
            <div id="cont_text" {if ($row.is_tig==1 || !isset($row.is_tig))}style="display: block"{else/}style="display: none"{/if}>
            <dl class="row">
                <dt class="tit">
                    <label for="web_name">网站名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="web_name" value="{$row.web_name}" id="web_name" class="input-txt">
                    <span class="err"></span>
                    <p class="notic2">备案用</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>关站提示文案</label>
                </dt>
                <dd class="opt">                                
                    <textarea rows="5" cols="60" id="myEditor" name="content" style="height: 160px;">{$row.content|default="<span style='font-size: 20px;'><strong>抱歉，该网页目前无法访问!</strong></span><br/><br/>网站可能正在建设中，也可能因暂未通过备案而临时关停;<br/>网页可能已被移除或正在进行调整，建议稍后再试;<br/>如果可以，请联系网站管理员询问"}</textarea>
                    <p class="">可填写任意信息，如:关站说明、备案号等。工具栏HTML可切换为代码模式</p>                    
                </dd>
            </dl>              
            </div>
            <div class="bot mt30">                
                <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
            </div>
        </div>
    </form>
</div>
<script src="__PUBLIC__/plugins/Ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/Ueditor/ueditor.all.js" type="text/javascript"></script>
<script type="text/javascript">
    // 判断输入框是否为空
    function checkForm(){
        layer_loading('正在处理');
        $('#post_form').submit();
    }
    $(document).ready(function(){
      $('input[name="is_tig"]').change(function(){
        // 获取选中的radio的值
        var selectedValue = $(this).val();
        // 执行其他操作，例如：
        if(selectedValue==1){
            $('#cont_text').css('display','block');
            $('#zdy_url').css('display','none');
        }else if(selectedValue==6){
            $('#cont_text').css('display','none');
            $('#zdy_url').css('display','block');
        }else{
            $('#cont_text,#zdy_url').css('display','none');        
        }
      });
    });  
</script>
<script type="text/javascript">
 var ue = UE.getEditor('myEditor', {
     autoHeightEnabled: true
     ,toolbars: [
        [
     'fullscreen', 'source', '|', 'undo', 'redo', '|',
     'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
     'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
     'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
     'directionalityltr', 'directionalityrtl', 'indent', '|',
     'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase'         
              
         ]
     ]

 })
</script>
{include file="footer.htm" /}